/* Basic Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #eaeaea;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-name {
    color: white;
    font-size: 1.5em;
    font-family: monospace;
    font-size: xx-large;
}

.navbar-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-family: monospace;
    font-size: x-large;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.navbar-links a:hover {
    background-color: #575757;
}

/* Outer Container */
.outer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    margin: 20px auto;
}

.profile-pic {
    width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin: 10px;
}

.text-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 40px;
    font-size: x-large;
}

.text-box h1 {
    text-align: center;
    font-size: xx-large;
    margin: 20px;
}

/* Sidebar */
.sidebar {
    width: 300px;
    height: 100vh;
    background-color: #f4f4f4;
    border-left: 2px solid #333;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Ticker Container */
.ticker-container {
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.ticker-canvas {
    width: 100%;
    margin-bottom: 10px;
}

.content {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
}

h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.contact-box {
    border-radius: 5px;
    padding: 20px;
    margin: 0 10px;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.logo {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

/* Progress Bar */
#progressBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f3f3f3;
    z-index: 200;
}

#progressBar {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
}

/* Media Queries for Mobile Devices */
@media screen and (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar-links {
        flex-direction: column;
        text-align: center;
    }

    .navbar-links li {
        margin: 10px 0;
    }

    /* Outer Container */
    .outer-container {
        flex-direction: column;
        width: 100%;
        padding: 10px;
    }

    .text-box {
        font-size: medium;
        line-height: 30px;
    }

    .profile-pic {
        width: 100%;
        height: auto;
        margin: 0 auto 20px auto;
    }

    /* Ticker Section */
    .ticker-canvas {
        margin-bottom: 20px;
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-box {
        margin-bottom: 20px;
        min-width: 100px;
    }

    /* H1 Font Size */
    .text-box h1 {
        font-size: xx-large;
    }
}
/* Mobile adjustments for screens smaller than 768px */
@media (max-width: 768px) {
    
    /* Navbar - Stack items vertically */
    .navbar {
        flex-direction: column;       /* Stack vertically */
        padding: 10px;                /* Reduce padding for smaller screens */
    }

    .navbar-name {
        font-size: large;             /* Adjust the font size */
        margin-bottom: 10px;          /* Add space between logo and links */
    }

    .navbar-links {
        flex-direction: column;       /* Stack links vertically */
        text-align: center;           /* Center align the links */
    }

    .navbar-links li {
        margin: 10px 0;               /* Space out the links */
    }

    /* Outer Container - Stack profile picture and text vertically */
    .outer-container {
        flex-direction: column;       /* Stack image and text vertically */
        align-items: center;          /* Center the content */
        width: 100%;                  /* Full width for mobile */
    }

    .profile-pic {
        width: 100%;                  /* Set profile pictures to full width */
        max-width: 300px;             /* Limit maximum size */
        margin-bottom: 20px;          /* Add space below images */
    }

    .text-box {
        width: 90%;                   /* Reduce width for smaller screens */
        font-size: large;             /* Slightly smaller text for readability */
    }

    /* Contact Section - Stack logos vertically */
    .contact-container {
        flex-direction: column;       /* Stack contact boxes vertically */
        align-items: center;          /* Center align the items */
    }

    .contact-box {
        width: 80%;                   /* Set a more manageable width for smaller screens */
        margin: 10px 0;               /* Space them out vertically */
    }

    /* Progress Bar - Stay consistent on mobile */
    #progressBarContainer {
        height: 4px;                  /* Slightly smaller height */
    }

    #progressBar {
        background-color: #4caf50;    /* Maintain visibility */
    }
}
